#include "yianzhuang.h"
#include "ui_yianzhuang.h"

Yianzhuang::Yianzhuang(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Yianzhuang)
{
    ui->setupUi(this);
    setWindowTitle("已安装");
    isJamiexist();


}

Yianzhuang::~Yianzhuang()
{
    delete ui;
}

void Yianzhuang::isJamiexist()
{
    QSqlQuery query;
    query.exec(QString("select * from user where SoftwareName = 'Jami'"));
    if(!query.next())
    {
        qDebug()<< "doesn't exist";
        ui->toolButton->setVisible(false);
    }
    else
    {
        qDebug()<< "Jami exists";
    }
}


